<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>修改用户信息</title>
  <link rel="stylesheet" href="css/bootstrap.min.css" />
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<style type="text/css">
  #update{
    height: 400px;
		width: 300px;
		margin: 100px auto;
  }
  </style>
  <script type="text/javascript">
    //提交事件
	function isubmit(){
		$("#btnsubmit").click();
	}
</script>
</head>
<body>
<div id="update">
<form action="updateEmpByEid.do" method="post" enctype="multipart/form-data">

      用户编号:  <input type="text" name="eid" value="${emp.eid}" class="form-control"> <br>
 	员工姓名:  <input type="text" name="ename" value="${emp.ename}" class="form-control"><br>
 	密码:   <input type="text" name="epwd" value="${emp.epwd}" class="form-control">
 	部门名称:<%-- <input type="text" name="deid" value="${emp.dept.dename}" class="form-control"><br> --%>
 	     <select name="deid"  class="form-control">
		     <option value="${emp.dept.deid}">${emp.dept.dename}</option>	
		     <c:forEach items="${list2}" var="l2" varStatus="status">
                  <option  value="${l2.deid}">${l2.dename}</option>
             </c:forEach>	
	     </select>
      员工照片:<img alt="照片" src="image/${emp.eimg }.jpg"
					style="width: 100px; height: 100px"> <br>
	  更换照片:<input type="file" name="upload"  accept="image/jpeg" >
 	<button id="btnsubmit" type="submit" style="display: none;">隐藏的提交按钮</button>

 </form>
 <div class="social-login clearfix" >
      <a     class="btn btn-primary pull-left facebook" onclick="isubmit()">确认</a>
      	
 </div>
</div>
</body>
</html>